<?php include_once './application/views/sys_admin/common/header.php';  ?>
<div class=" definewidth m20">
		<form action="/sys_admin/statistics/managemoney" method="post" class="form-inline definewidth m20">
			开始时间<input type="text" id="tstart" name="tstart" value="<?php echo $tstart;?>" size="10" onfocus="WdatePicker({dateFmt:'yyyy-MM '})" class="Wdate">
			结束时间<input type="text" id="tend" name="tend" value="<?php echo $tend;?>" size="10" onfocus="WdatePicker({dateFmt:'yyyy-MM '})" class="Wdate">
  			<button type="button" class="btn btn-primary"  onclick="this.form.submit();" >查询</button>
  			<button type="button" class="btn btn-success"  onclick="href('/sys_admin/statistics/managemoneyexcel?tstart=<?php echo $tstart;?>&tend=<?php echo $tend;?>');" >导出excel</button>
	  	</form>
		<table class="table table-bordered table-hover definewidth m10">
			 <thead>
			    <tr>
			       <th><strong>序号</strong></th>
					<th><strong>年</strong></th>
					<th><strong>月</strong></th>
					<th><strong><a href="/sys_admin/statistics/managemoney/caccount">累计理财投标总额</a></strong></th>
					<th><strong><a href="/sys_admin/statistics/managemoney/saccount">本月新增理财总额</a></strong></th>
					<th><strong><a href="/sys_admin/statistics/managemoney/useracount">累计理财会员数</a></strong></th>
					<th><strong><a href="/sys_admin/statistics/managemoney/museracount">新增理财会员数</a></strong></th>
					<th><strong><a href="/sys_admin/statistics/managemoney/rjtmoney">人均理财金额</a></strong></th>
					<th><strong><a href="/sys_admin/statistics/managemoney/baccount">每标人均投标金额</a></strong></th>
					<th><strong><a href="/sys_admin/statistics/managemoney/rjcnum">人均投资债权标数量</a></strong></th>
					<th><strong><a href="/sys_admin/statistics/managemoney/rjye">人均账户余额</a></strong></th>
			    </tr>
			   </thead>
			   <?php $statistics_id = 1;foreach($list as $statistics){ ?>
			  <tr>
			  <td> <?php echo $statistics_id;?></td>
				<td><?php echo $statistics['year'];?></td>
				<td><?php echo $statistics['month'];?></td>
				<td><?php echo round($statistics['caccount'],2);?></td>
				<td><?php echo round($statistics['saccount'],2);?></td>
				<td><?php echo $statistics['useracount'];?></td>
				<td><?php echo $statistics['museracount'];?></td>
				<td><?php echo round($statistics['rjtmoney'],2);?></td>
				<td><?php echo $statistics['baccount'];?></td>
				<td><?php echo round($statistics['rjcnum'],2);?></td>
				<td><?php echo round($statistics['rjye'],2);?></td>
				<!--  <td</td> -->
			  </tr>
			  <?php $statistics_id ++;}?>
			  <tr>
			  	<td>总计</td>
				<td>会员:<?php echo $list[0]['ucount'];?></td>
				<td>V I P:<?php echo $list[0]['vipcount'];?></td>
				<td colspan="8"></td>
			  </tr>
			  	<tr>
			  	<td colspan="12"  class="invbd_page"><?php echo $this->pagination->create_links();?></td>
			  	</tr>
		</table>
</div>
